import request from '@/utils/request'
import { SystemDictTypeDTO } from '@/model/system/SystemDictTypeDTO'

/**
 * 根据typeCode获取字典值
 * @param data
 * @returns
 */
export function getByTypeCode(typeCode: string): Promise<SystemDictTypeDTO> {
  return request.get<SystemDictTypeDTO>('/api/system/dict/getByTypeCode', {
    typeCode,
  })
}
